3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to normalize a vector. The normalized form of a vector is the vector having the same direction as the given vector but a length equal to 1.0.
You can use the Q3Vector2D_Normalize function to normalize a two-dimensional vector.
TQ3Vector2D *Q3Vector2D_Normalize (
const TQ3Vector2D *vector2D,
TQ3Vector2D *result);
You can use the Q3Vector3D_Normalize function to normalize a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Normalize (
const TQ3Vector3D *vector3D,
TQ3Vector3D *result);
Previous | QD3D Book | Overview | Chapter Contents | Next |